package com.hardson.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hardson.demo.dao.BaseDao;
import com.hardson.demo.model.user.User;
import com.hardson.demo.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	BaseDao<?> baseDao;
	
	@Override
	public User getUser(Long userId, Class<?> clazz) {

		return (User) baseDao.selectByPrimaryKey(userId, clazz);
	}

}
